<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="auth/admin/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
            <input type="hidden" id="c-user_id_text_value" name="row[user_name]"/>
        </div>
    </div>
    <div class="form-group">
        <label for="c-organization_id" class="control-label col-xs-12 col-sm-2">{:__('Organization_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-organization_id" data-rule="required" data-source="organization/index" class="form-control selectpage" name="row[organization_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-apply_type" class="control-label col-xs-12 col-sm-2">{:__('Apply_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-apply_type" data-rule="required" class="form-control selectpicker" name="row[apply_type]">
                {foreach name="applyTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label for="c-parent_code" class="control-label col-xs-12 col-sm-2">{:__('Parent_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-parent_code" data-rule="required" class="form-control" name="row[parent_code]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-code" class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-flag" class="control-label col-xs-12 col-sm-2">{:__('Flag')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-flag" data-rule="required" class="form-control" name="row[flag]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-amount" class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-amount" data-rule="required" class="form-control" step="0.01" name="row[amount]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label for="c-site_id" class="control-label col-xs-12 col-sm-2">{:__('Site_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-site_id" data-source="site/index" class="form-control selectpage" name="row[site_id]" type="text" value="">
            <input type="hidden" id="c-site_id_text_value" name="row[site_name]"/>
        </div>
    </div>
    <div class="form-group">
        <label for="c-apply_time" class="control-label col-xs-12 col-sm-2">{:__('Apply_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-apply_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[apply_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
